<?php
/**
 * 读取相应的 mod 文件
 */
if( !empty( $mod ) ){
	
        include( getcwd() . '/application/views/admin/html_info.php' );
        echo '<body>';
	$mod_path = getcwd() . "/application/views/admin/$mod.php";

	if( $mod != 'login' ){	

		 //如果是登陆页面 则不显示这些
		 include( getcwd() . '/application/views/admin/nav.php' );
	}

	if( file_exists( $mod_path ) ){
		echo "<div id=\"main\">";
		include( $mod_path );
		echo "</div>";
	}

	if( $mod != 'login' ){
		 
		 //如果是登陆页面 则不显示这些	 
		 include( getcwd() . '/application/views/admin/footer.php' );
        }
        echo '</body>';
}else{
	 echo "没有指定相应的模块.";
}
?>
